<p>&nbsp;</p>
<table width="100%">
    <tr>
        <th>email</th>
        <th>price</th>
        <th>reg date</th>
        <th>conf date</th>
        <th width="120">Action</th>
    </tr>
    <?php
    if ($user) {
        foreach ($user as $value) {
            ?>
            <tr>
                <td><?php echo $value['email'] ?></td>
                <td><?php echo ($value['value'] + $value['id']); ?></td>
                <td><?php echo $value['date_created'] ?></td>
                <td><?php echo $value['date_approved'] ?></td>
                <td><?php 
                		if($value['status'] == 1){
                			echo anchor(base_url() . 'admin/approve_register/approve/' . $value['id'], 'Approve', array('title' => 'Approve as User.'));}
                		else {
                			echo "Active";} ?>
                </td>
            </tr>
            <?php
        }
    }
    ?>
</table>
<p>&nbsp;</p>